package org.kzwl.comm.pojo.dto.venues;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("场馆预约详细")
public class VenuesDetailsDTO {

    @ApiModelProperty("自增")
    private Integer cuVenuesId;

    @ApiModelProperty("科室ID")
    private Integer cuVenuesCategoryId;

    @ApiModelProperty("标题")
    private String cuVenuesTitle;

    @ApiModelProperty("封面")
    private String cuVenuesImg;

    @ApiModelProperty("轮播")
    private List<String> cuVenuesImgList;

    public void setCuVenuesImg(String cuVenuesImg) {
        if (cuVenuesImg!=null&&!cuVenuesImg.equals("")){
            this.cuVenuesImgList = JSONObject.parseArray(cuVenuesImg, String.class);
            this.cuVenuesImg = cuVenuesImg;
        }
    }

    @ApiModelProperty("场馆地点")
    private String cuVenuesAddress;

    @ApiModelProperty("容纳人数")
    private Integer cuVenuesPeopleNumber;

    @ApiModelProperty("电话")
    private String cuVenuesPhone;

    @ApiModelProperty("场地设施")
    private String cuVenuesFacilities;

    @ApiModelProperty("内容")
    private String cuVenuesContent;

    @ApiModelProperty("是否可预约 0是1否")
    private Integer cuVenuesIs;

    @ApiModelProperty("开始时间")
    private LocalDateTime cuVenuesOpenDate;

    @ApiModelProperty("结束时间")
    private LocalDateTime cuVenuesEndDate;

    @ApiModelProperty("分类")
    private String cuVenuesCateg;

    @ApiModelProperty("已预约人数")
    private Integer cuVenuesNum;

    @ApiModelProperty("是已经预约 0-否 1-是 若没传递userid(没登录) 默认为0")
    private Integer isJoin = 0;

}
